<template>
  <view class="container">
    <view class="img-box">
      <image src="../../static/illustrations.png" mode="scaleToFill" />
    </view>

    <view class="invite-desc">
      <view>5天免费会员</view>
      <view>邀请好友 你我都有</view>
    </view>

    <view class="invite-btn">
      <button open-type="share">立即邀请</button>
    </view>
  </view>
</template>

<script>
export default {
  props: {},
  components: {},
  data() {
    return {};
  },
  computed: {},
  watch: {},
  methods: {},
  created() {},
  mounted() {},
  beforeDestroy() {},
  onShareAppMessage() {
    console.log("点击了转发");
  },
};
</script>

<style lang="scss" scoped>
.container {
  background-color: #fff;

  .img-box {
    width: 100%;
    height: 60%;
    image {
      width: 100%;
      height: 100%;
      transform: scale(0.8);
    }
  }

  .invite-desc {
    text-align: center;
    font-size: 32rpx;
    color: #333;
    & view:last-child {
      padding-top: 10rpx;
      font-size: 28rpx;
    }
  }

  .invite-btn {
    width: 100%;
    margin-top: 60rpx;
    padding: 0 30rpx;
    font-size: 28rpx;
  }
  & button {
    display: inline-block;
    width: 100%;
    height: 88rpx;
    background-color: #666ee8;
    border-radius: 100rpx;
    box-shadow: 0px 6px 12px rgba(102, 110, 232, 0.16);
    line-height: 88rpx;
    text-align: center;
    color: white;
  }
}
</style>
